package com.ltedu.sms.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * <p>
 * 用户发送短信日志
 * </p>
 *
 * @author Jerry
 * @since 2020-11-26
 */
@TableName(value = "send_sms_log")
public class SendSmsLog implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 创建时间
     */
    private Date gmtCreate;

    /**
     * 短信模板
     */
    private String template;

    /**
     * 手机号码
     */
    private String mobile;

    /**
     * 验证码
     */
    private String smsCode;

    /**
     * 是否发送成功(1发送成功，0:发送失败)
     */
    private Integer isSuccess;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public String getTemplate() {
        return template;
    }

    public void setTemplate(String template) {
        this.template = template;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getSmsCode() {
        return smsCode;
    }

    public void setSmsCode(String smsCode) {
        this.smsCode = smsCode;
    }

    public Integer getSuccess() {
        return isSuccess;
    }

    public void setSuccess(Integer isSuccess) {
        this.isSuccess = isSuccess;
    }

    @Override
    public String toString() {
        return "SendSmsLog{" +
        "id=" + id +
        ", gmtCreate=" + gmtCreate +
        ", template=" + template +
        ", mobile=" + mobile +
        ", smsCode=" + smsCode +
        ", isSuccess=" + isSuccess +
        "}";
    }
}
